package com.pkk.penguin.components.starter.rpc.crypto.service;

import java.io.InputStream;

/**
 * @author luffy
 * @description: 加密解密
 * @date 2019-11-15 17:19
 */
public interface CryptoService {

  String encrypt(String string);

  String encrypt(Object object);

  byte[] encrypt(byte[] bytes);

  byte[] encrypt(InputStream is);

  String decrypt(String string);

  byte[] decryptForByte(String string);

  byte[] decrypt(byte[] bytes);

  byte[] decrypt(InputStream is);

}
